package com.gxk.util;

import com.badlogic.gdx.math.Rectangle;

public class CollisionUtil {
	private static boolean isPointInRect(Point point, Rectangle rectangle) {
		return rectangle.contains(point.x, point.y);
	}

	public static boolean IsPointsInRectCollison(Point[] points,
			Rectangle rectangle) {
		for (int i = 0; i < points.length; i++) {
			if (isPointInRect(points[i], rectangle)) {
				return false;
			}
		}
		return true;
	}
}
